package lhdx4;

import java.util.Scanner;

public class Gongsiyin {
    public static void main(String[] args) {
        Gongsi b=new Gongsi();
        b.gongs="打工人 ";
        b.zhuce="无人区";
        b.dianHua="12345678912";
        b.jinYin="打工";
        System.out.println(b.gongs+"公司,地址在"+b.zhuce);
        Scanner in=new Scanner(System.in);
        Gongsi D=new Gongsi();
        int j=0;
        while (true){
            System.out.print("1.招聘员工, 2.输出员工信息, 3.辞退员工方法,4.统计,5.查找,6.排序,7.退出");
            j=in.nextInt();
            if (j==1){
                System.out.print("输入员工名：");
                String mame=in.next();
                System.out.print("输入员工年龄：");
                int nianL=in.nextInt();
                System.out.print("输入员工性别：");
                String xingB=in.next();
                System.out.print("输入员工职务：");
                String zhiW=in.next();
                System.out.print("输入员工薪水：");
                int xinShui=in.nextInt();
                D.add(mame,nianL,xingB,zhiW,xinShui);
            }else if (j==2){
                D.showInformation();
            }else if (j==3){
                String name=in.next();
                D.ciTuei(name);
            }else if (j==4){
                D.tongJi();
            }else if(j==5){
                D.findTopSalary();
            }else if(j==6){
                D.sortBySalDesc();
            } else if (j==7){
                break;
            }
        }
    }
}
